<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>信息系统管理平台</title>
<link href="${pageContext.request.contextPath}/css/main.css"
	rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/css/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css"
		href="${pageContext.request.contextPath}/css/themes/icon.css">
		<script type="text/javascript"
			src="${pageContext.request.contextPath}/js/jquery-1.6.min.js"></script>
		<script type="text/javascript"
			src="${pageContext.request.contextPath}/js/jquery.easyui.min.js"></script>
</head>
<body>
	<div class="Wrapper">
		<div class="header header_login">
			<div class="logo floatL">
				<a href="${pageContext.request.contextPath}/index.jsp" title="会议室管理"><img
					src="${pageContext.request.contextPath}/images/log.png" border="0" /></a>
			</div>
			<div class="login_nav floatR">
				欢迎您:${session.employeeName}<a
					href="${pageContext.request.contextPath}/LoginController/logout">注销</a>
			</div>
			<br class="clear" />
		</div>

		<div class="main_container">
			<div id="main_leftNav" class="main_leftNav">
				<div class="easyui-accordion" data-options="fit:true"
					style="heigth: 500px">
					 <div title="首页" style="overflow: auto; padding: 10px;">
						显示当前用户的待办事项、月报、周报</div>
					<c:forEach var="ruleInfo" items="${session.ruleList}">
						<div title="${ruleInfo.ruleName}"
							data-options="href:'${pageContext.request.contextPath}/UserController/getNavagate?userId=${ruleInfo.userId}&pid=${ruleInfo.treeId}'"
							style="padding: 10px"></div>
					</c:forEach>
				</div>
			</div>

			<div id="main_right" class="main_right">
				<iframe src="${pageContext.request.contextPath}/shouye.jsp"
					style="width: 100%; height: 100%; border: 0px" border="0"
					marginwidth="0" marginheight="0" allowtransparency="yes"
					id="mainIframe" name="mainIframe" scrolling="no"
					onload="reinitIframe();"></iframe>
			</div>
		</div>
		<div class="footer">
			<div class="box">
				<p class="nav floatL">
					<a>关于我们</a> <a>联系我们</a>
				</p>
				<p class="copyright floatR">
					<a>版权信息详情</a>
				</p>
				<br class="clear" />
			</div>
		</div>
	</div>
</body>
</html>
<script type="text/javascript">
	function reinitIframe() {
		var iframe = document.getElementById("mainIframe");
		try {
			var bHeight = iframe.contentWindow.document.body.scrollHeight;
			var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
			var height = Math.max(bHeight, dHeight);
			iframe.height = height;
			document.getElementById("main_right").style.height = height + "px";
		} catch (ex) {
		}
	}

	//window.setInterval("reinitIframe()", 200);
</script>